<?php

/**
 * Test: ComponentContainer component factory 3.
 *
 * @author     David Grudl
 * @category   Nette
 * @package    Nette
 * @subpackage UnitTests
 */



require dirname(__FILE__) . '/../initialize.php';



class TestClass extends ComponentContainer
{

	public function createComponent($name)
	{
		return new self($this, $name);
	}

}


$a = new TestClass;
T::dump( $a->getComponent('b')->name );



__halt_compiler() ?>

------EXPECT------
string(1) "b"